package com.clkj.goldpartner.service;

import com.clkj.goldpartner.pojo.*;

import java.util.List;

/**
 * @author 杨行
 * @date 2021/2/28 16:35
 */
public interface SystemService {

    /**
     * 获取门店列表
     *
     * @return
     */
    List<Shop> getShopAndChildren();

    /**
     * 从账号获取人员
     *
     * @param shop_account
     * @return
     */
    Shop getShopByAccount(String shop_account);

    /**
     * 关闭门店
     *
     * @param shop_id
     */
    void updateShop(Integer shop_id);

    /**
     * 获取门店列表
     *
     * @return
     */
    List<Shop> getShop();

    /**
     * 添加门店
     *
     * @param shop
     */
    void addShop(Shop shop);

    /**
     * 获取人员管理列表
     *
     * @param shop_id
     * @param member_name
     * @param member_sex
     * @return List<Member>
     */
    List<Member> getMemberList(Integer shop_id, String member_name, String member_sex);

    /**
     * 获取相关分类人员列表
     *
     * @param shop_id
     * @param member_type
     * @return List<Member>
     */
    List<Member> getMemberListByType(Integer shop_id, String member_type);

    /**
     * 添加人员
     *
     * @param member
     */
    void addMember(Member member);

    /**
     * 修改人员
     *
     * @param member
     */
    void editMember(Member member);

    /**
     * 删除人员
     *
     * @param ids
     */
    void deleteMember(String ids);

    /**
     * 获取最后一位编号
     *
     * @return String
     */
    String getSupplier_num();

    /**
     * 新增供货商
     *
     * @param supplier
     */
    void addSupplier(Supplier supplier);

    /**
     * 修改供货商
     *
     * @param supplier
     */
    void editSupplier(Supplier supplier);

    /**
     * 获取供货商
     *
     * @param shop_id
     * @param supplier_name
     * @param supplier_num
     * @return List<Supplier>
     */
    List<Supplier> getSupplier(Integer shop_id, String supplier_name, String supplier_num);

    /**
     * 获取可用供货商
     *
     * @param shop_id
     * @param supplier_name
     * @param supplier_num
     * @return List<Supplier>
     */
    List<Supplier> getSupplierNow(Integer shop_id, String supplier_name, String supplier_num);

    /**
     * 删除供货商
     *
     * @param ids
     */
    void deleteSupplier(String ids);


    /**
     * 获取客户列表
     *
     * @param shop_id
     * @param customer_name
     * @param customer_num
     * @return List<Customer>
     */
    List<Customer> getCustomer(Integer shop_id, String customer_name, String customer_num);

    /**
     * 获取最后一位编号
     *
     * @return String
     */
    String getCustomer_num();

    /**
     * 添加客户
     *
     * @param customer
     */
    void addCustomer(Customer customer);

    /**
     * 修改客户
     *
     * @param customer
     */
    void editCustomer(Customer customer);

    /**
     * 删除客户列表
     *
     * @param ids
     */
    void deleteCustomer(String ids);

    /**
     * 添加仓库
     *
     * @param warehouse
     */
    void addWarehouse(Warehouse warehouse);

    /**
     * 修改仓库
     *
     * @param warehouse
     */
    void editWarehouse(Warehouse warehouse);

    /**
     * 获取仓库列表
     *
     * @param shop_id
     * @param warehouse_name
     * @param warehouse_type
     * @return
     */
    List<Warehouse> getWarehouse(Integer shop_id, String warehouse_name, String warehouse_type);

    /**
     * 删除仓库
     *
     * @param ids
     */
    void deleteWarehouse(String ids);

    /**
     * 获取过期客户
     *
     * @param shop_id
     * @return
     */
    List<Customer> getCustomerWarn(Integer shop_id);

    /**
     * 获取过期代理商
     *
     * @param shop_id
     * @return
     */
    List<Supplier> getSupplierWarn(Integer shop_id);

}
